package com.shop.service;

import com.shop.entity.User;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2022/3/10 8:57
 **/
public interface UserService {

	/**
	 * 根据账号，获取用户信息
	 * @param account
	 * @return
	 */
	public User findUserByAccount(String account);

	/**
	 * 根据手机号码，获取用户信息
	 * @param phone
	 * @return
	 */
	public User findUserByPhone(String phone);

	/**
	 * 添加用户
	 * @param user
	 * @return
	 */
	public int add(User user);
}
